export default {
    singular: true,
    // 若已有配置
    outputPath: "./build",
    theme: {
        "@primary-color": "#30b767",
    },
    plugins: [
        ['umi-plugin-react', {
            // 这里暂时还没有添加配置，该插件还不会有作用，我们会在后面的课程按照需求打开相应的配置
            antd: true,
            dva: true,
            locale: {
                enable: true,
            },
        }],
    ],
    routes: [{
        path: '/',
        component: '../layout',
        routes: [
            {
                path: '/',
                component: 'HelloWorld',
            },
            {
                path: '/helloword',
                component: 'HelloWorld'

            },
            {
                path: '/dashboard',
                routes: [
                    { path: '/dashboard/analysis', component: 'Dashboard/Analysis' },
                    { path: '/dashboard/monitor', component: 'Dashboard/Monitor' },
                    { path: '/dashboard/workplace', component: 'Dashboard/Workplace' },
                ]
            },
            {
                path: '/puzzlecards',
                component: 'puzzlecards'
            },
            { path: '/list', component: 'list' },
            { path: '/css-modules-with-less', component: 'css-modules-with-less' },
            { path: '/css-modules-with-antd', component: 'css-modules-with-antd' },
            { path: '/upload', component: 'Upload' },
            { path: '/locale', component: 'Locale' },
        ],
        proxy: {
            '/dev': {
                target: 'https://08ad1pao69.execute-api.us-east-1.amazonaws.com',
                changeOrigin: true,
            }
        }
    }],
};